package com.base.web;

import com.base.service.DtsUserService;
import com.base.util.ResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class DtsUserController {

    @Autowired
    private DtsUserService dtsUserService;

    @GetMapping("/test")
    public String test() {
        return "Hello world";
    }

    @GetMapping("/getUser")
    public Object getUser() {
        return dtsUserService.getUser();
    }
}
